<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/layui.css" rel="stylesheet">
<style>
	.layui-upload-file{
		visibility: hidden;
	}
	#pic{
		width:140px;
		height:140px;
	}
</style>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${payment.id}"  type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">付款时间：</label>
								<div class="col-sm-8">
									<input type="text" class="laydate-icon layer-date form-control" th:value="${#dates.format(payment.payDate, 'yyyy-MM-dd')}" id="payDate" name="payDate" placeholder="请选择付款时间"
										   onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" style="background-color: #fff;" readonly="readonly"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">采购合同编号：</label>
								<div class="col-sm-8">
									<input id="purGroupid" name="purGroupid" th:value="${payment.purGroupid}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">采购合同总额：</label>
								<div class="col-sm-8">
									<input id="purAmount" name="purAmount" th:value="${payment.purAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">申请金额：</label>
								<div class="col-sm-8">
									<input id="appliAmount" name="appliAmount" th:value="${payment.appliAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">收款方：</label>
								<div class="col-sm-8">
									<input id="payee" name="payee" th:value="${payment.payee}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">收款账号：</label>
								<div class="col-sm-8">
									<input id="payeeAccount" name="payeeAccount" th:value="${payment.payeeAccount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">开户行：</label>
								<div class="col-sm-8">
									<input id="bankName" name="bankName" th:value="${payment.bankName}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">付款方：</label>
								<div class="col-sm-8">
									<input id="paymentName" name="paymentName" th:value="${payment.paymentName}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">付款方式：</label>
								<div class="col-sm-8">
									<input id="paymentType" name="paymentType" th:value="${payment.paymentType}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">摘要：</label>
								<div class="col-sm-8">
									<textarea id="summary" name="summary" th:text="${payment.summary}" class="form-control"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<textarea id="remark" name="remark" th:text="${payment.remark}" class="form-control"></textarea>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">付款凭证：</label>
								<div class="col-sm-8">
									<input id="paymentProof"  name="paymentProof" class="form-control" type="hidden">
									<button type="button" id="upLoad" class="layui-btn"><i class="fa fa-cloud"></i>上传文件
									</button>
									<img src="" id="pic" >
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">付款</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="/js/layui.js"></script>
	<script type="text/javascript" src="/js/appjs/fin/payment/paymentedit.js"></script>
	<script type="text/javascript" src="/js/plugins/cropper/cropper.min.js"></script>
	<script type="text/javascript" src="/js/plugins/layer/laydate/laydate.js" ></script>
	<script type="text/javascript" src="/js/plugins/distpicker/distpicker.data.min.js"></script>
	<script type="text/javascript" src="/js/plugins/distpicker/distpicker.min.js"></script>
</body>
</html>
